<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/6/28
 * Time: 13:37
 */
namespace Admin\Model;


use Base\Model\BaseModel;
use Think\Page;

class AppversioninfoModel extends BaseModel
{
    protected $_validate = array(
        array('code', 'require', '名称必须填写'),
        array('apptype', 'require', '类型必须填写'),
        array('downLoadURL', 'require', 'Apk文件必须上传'),
    );

    protected $_auto = array(
        array('ReleaseTime','mydate','1','callback'),
        array('status', '1'),
    );
    protected function mydate(){
        return date("Y-m-d H:i:s");
    }
}